package com.ecloud.support.generator.model.convert;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.ecloud.support.generator.model.dto.TemplateDto;
import com.ecloud.support.generator.model.entity.TemplatePo;
import com.ecloud.support.generator.model.vo.TemplateVo;

@Mapper
public interface TemplateConverter {
    TemplateConverter INSTANCE = Mappers.getMapper(TemplateConverter.class);

    TemplatePo dtoToPo(TemplateDto dto);

    List<TemplatePo> dtoToPo(List<TemplateDto> dtos);

    TemplateVo poToVo(TemplatePo po);

    List<TemplateVo> poToVo(List<TemplatePo> pos);
}
